package com.zhang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Api(tags = "入库订单详情实体类")
@Data
@NoArgsConstructor
@TableName("t_inputorder")
public class InputOrderBean {

    @ApiModelProperty("入库订单id")
    @TableId(value = "pk_inputOrderId",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品名")
    @TableField(value = "io_name")
    private String name;

    @ApiModelProperty("厂家")
    @TableField(value = "io_mill")
    private String mill;

    @ApiModelProperty("建议采购价")
    @TableField(value = "io_purchase")
    private Integer purchase;

    @ApiModelProperty("建议销售价")
    @TableField(value = "io_sale")
    private Integer sale;

    @ApiModelProperty("采购数量")
    @TableField(value = "io_count")
    private Integer count;

    @ApiModelProperty("所属入库信息")
    @TableField(value = "fk_inputInfoId")
    private Integer inputInfoId;

    @Override
    public String toString() {
        return "InputOrderBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", mill='" + mill + '\'' +
                ", purchase='" + purchase + '\'' +
                ", sale='" + sale + '\'' +
                ", count='" + count + '\'' +
                '}' + "\n";
    }
}
